<?php

class ActionIndex extends BaseAction
{
    public function run()
    {
        $this->template->iPendingTariffLotsOrdersCnt = TariffPlanBuyLots::model()->countByAttributes(array('status' => 'pending'));
        $this->template->iApprovedTariffLotsOrdersCnt = TariffPlanBuyLots::model()->countByAttributes(array('status' => 'approved'));
        $this->template->iRejectedTariffLotsOrdersCnt = TariffPlanBuyLots::model()->countByAttributes(array('status' => 'rejected'));
    }
}